package com.pjedu.nbmallshop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.util.Date;

/**
 * (MallGoodsCategory)实体类
 *
 * @author 汪洋
 * @since 2022-01-31 12:16:15
 */
@Data
@Builder
public class MallGoodsCategory implements Serializable {
    private static final long serialVersionUID = 200045842107050060L;
    /**
     * 分类id
     */
    private Long categoryId;
    /**
     * 分类级别(1-一级分类 2-二级分类 3-三级分类)
     */
    private Integer categoryLevel;
    /**
     * 父分类id
     */
    private Long parentId;
    /**
     * 分类名称
     */
    private String categoryName;
    /**
     * 排序值(字段越大越靠前)
     */
    private Integer categoryRank;
    /**
     * 删除标识字段(0-未删除 1-已删除)
     */
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建者id
     */
    private Integer createUser;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改者id
     */
    private Integer updateUser;
    @Tolerate
    public MallGoodsCategory() {
    }
}

